#!/bin/bash

if [ $# != 1 ]; then
  echo "input parameters: data_dir"
  exit 1;
fi

data_dir=$1

sql_cmd="load data local inpath '$data_dir/ds1_data' overwrite into table i_acrm_transaction;"

$HIVE_HOME/bin/hive -e "$sql_cmd"
